package com.mybatis.demo.mapper;

import com.mybatis.demo.model.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserInfoXmlMapper {

    List<UserInfo> selectAll();

    List<UserInfo> selectById(int id);

    Integer insert(@Param("userInfo") UserInfo userInfo);

    void update(Integer id,String username);

    void delete(Integer id);

    List<UserInfo> selectAll1();
    List<UserInfo> selectAll2();

    Integer insertUserByCondition(UserInfo userInfo);

    List<UserInfo> selectByCondition(UserInfo userInfo);

    void updateByCondition(UserInfo userInfo);


    List<UserInfo> selectByIds(List<Integer> ids);

}
